$.extend($.fn.validatebox.defaults.rules, {
	price: {
        validator: function(value, param){
        	var price = /^\d+$/;
        	return price.test(value);
        },
        message: '价钱格只能是数字'
    }
});

$.extend($.fn.validatebox.defaults.rules, {
	train: {
        validator: function(value, param){
        	var train = /^([A-Z]|[a-z])+\d+$/;
        	return train.test(value);
        },
        message: '车次必须以字母开头加数字'
    }
});

$.extend($.fn.validatebox.defaults.rules, {
	nums: {
        validator: function(value, param){
        	var nums = /^\d+$/;
        	return nums.test(value);
        },
        message: '票数不正确'
    }
});
